home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / icons / icnman11.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-03-28  |  1KB  |  51 lines

  1. :begin
  2. ECHO OFF
  3. ECHO ===================================
  4. ECHO ICON MANAGER - Installation Utility
  5. ECHO ===================================
  6. ECHO  
  7. IF "%1"=="" GOTO nodrive
  8. SET IMPATH=ICONS
  9. IF "%2"=="" GOTO nopath
  10. SET IMPATH=%2
  11. :nopath
  12. IF NOT EXIST %1\%IMPATH%\NUL GOTO cont1
  13. ECHO The sub-directory %1\%IMPATH% exists.    Press Ctrl-C to abort installation.
  14. PAUSE
  15. GOTO cont2
  16. :cont1
  17. MD %1\%IMPATH% >NUL
  18. :cont2
  19. IF NOT EXIST ICONMAN.EXE GOTO wrongdir
  20. ECHO Installing Icon Manager to %1\%IMPATH%
  21. ECHO Copying program file...
  22. COPY ICONMAN.EXE %1\%IMPATH% >NUL
  23. ECHO Copying support files...
  24. COPY ICONMAN.WRI %1\%IMPATH% >NUL
  25. COPY 32X32.BMP %1\%IMPATH% >NUL
  26. ECHO Copying text files...
  27. COPY ORDER.TXT %1\%IMPATH% >NUL
  28. COPY README.1ST %1\%IMPATH% >NUL
  29. IF NOT EXIST *.ICA GOTO cont3
  30. ECHO Copying icon archive files...
  31. COPY *.ICA %1\%IMPATH% >NUL
  32. :cont3
  33. ECHO  
  34. ECHO Installation complete!
  35. GOTO end
  36. :wrongdir
  37. ECHO Cannot find file ICONMAN.EXE.  Please check to make sure that the
  38. ECHO current directory is set to the floppy drive containing the
  39. ECHO installation diskette.
  40. GOTO end
  41. :nodrive
  42. ECHO Please enter the disk drive on the command line. (e.g., INSTALL C:)
  43. ECHO 
  44. ECHO You may additionally specify a sub-directory (e.g., INSTALL D: MYDIR),
  45. ECHO otherwise the installation will be attempted using the sub-directory
  46. ECHO name "ICONS".
  47. :end
  48. ECHO  
  49. ECHO End INSTALL
  50. 
  51.